package com.ff.neuropp.repository;

import java.util.Date;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.ff.neuropp.domain.Career;
import com.ff.neuropp.domain.Resource;

public interface ResourceRepository extends JpaRepository<Resource, Integer>, JpaSpecificationExecutor<Resource> {


    List<Resource> findAllByCareer(Career career);

	Resource findAllByIdAndResourceDate(Integer resourceId, Date date);

}
